package factory;

public class FactoryTest {
    public static void main(String[] args) {
        Product productA = Factory.createProduct("A");
        Product productB = Factory.createProduct("B");

        System.out.println(productA.operation());  // 输出: Product A
        System.out.println(productB.operation());  // 输出: Product B
    }
}
